import http from '../http.js'
export const getUserList = (params) => http.get("sys/user/list",{params}) // 获取用户列表
export const setUser = (params, type) => http.post("sys/user/"+type, params) // 用户新增/编辑
export const getRoleList = () => http.get("sys/role/select") // 获取角色列表
export const getUserListInfo = (id) => http.get("sys/user/info/"+id) // 获取用户信息
export const deleteUser = (ids) => http.post("sys/user/delete", ids) // 删除用户
export const getRoles = (params) => http.get("sys/role/list", {params}) // 获取角色列表
export const getMenus = () => http.get("sys/menu/list") // 获取菜单
export const setRole = (params, type) => http.post("sys/role/"+type, params) // 角色新增/编辑
export const getRoleInfo = (id) => http.get("sys/role/info/"+id) // 获取角色信息
export const deleteRolle = (ids) => http.post("sys/role/delete", ids) // 删除角色
export const sellectMenus = () => http.get("sys/menu/select") // 获取菜单
export const getMenuInfo = (id) => http.get("sys/menu/info/"+id) // 获取菜单
export const setMenu = (params, type) => http.post("sys/menu/"+type, params) // 角色新增/编辑
export const delMenu = (id) => http.post(`sys/menu/delete/${id}`) // 删除菜单
export const setPassword = (params) => http.post(`sys/user/password`, params) // 修改密码

